package cliente.domain;

/**
 * This class represents a tweet or status.
 */
public class Status {
    private String id;
    private String createdAt;
    private String text;
    private String source;
    private boolean truncated;
    private String replyToTweetId;
    private String replyToUserId;

    public Status() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public boolean isTruncated() {
        return truncated;
    }

    public void setTruncated(boolean truncated) {
        this.truncated = truncated;
    }

    public String getReplyToTweetId() {
        return replyToTweetId;
    }

    public void setReplyToTweetId(String replyToTweetId) {
        this.replyToTweetId = replyToTweetId;
    }

    public String getReplyToUserId() {
        return replyToUserId;
    }

    public void setReplyToUserId(String replyToUserId) {
        this.replyToUserId = replyToUserId;
    }

    @Override
    public String toString() {
        return new StringBuilder()
                .append("Status{\n").append("  id='").append(id).append("\'\n")
                .append("  createdAt='").append(createdAt).append("\'\n")
                .append("  text='").append(text).append("\'\n")
                .append("  source='").append(source).append("\'\n")
                .append("  truncated=").append(truncated).append("\n")
                .append("  replyToTweetId='").append(replyToTweetId).append("\'\n")
                .append("  replyToUserId='").append(replyToUserId).append("\'\n")
                .append('}').toString();
    }
}
